﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.Common.ValidateTextBox
{
    public class SimpleValidator : ValidatorBase
    {
        public SimpleValidator(Func<string, object[], ValidateResult> Validate)
        {
            this._validate = Validate;
        }
        Func<string, object[], ValidateResult> _validate;
        public override ValidateResult Validate(string ValidateValue, object[] ValidateParam)
        {
            return _validate(ValidateValue, ValidateParam);
        }
    }
}
